package com.yhq.basic.function;

import java.util.function.Consumer;
import java.util.function.Function;

/**
 * @author hqyin
 * @date 2023/2/7 4:09 下午
 */
public class TCustomImpl implements TCustom {

    @Override
    public <T> Object getInfo(Function<? super T, ?> mapper, T t) {
        return mapper.apply(t);
    }

    @Override
    public <T> void addTest(Consumer<? super T> consumer, T t) {
        consumer.accept(t);
    }
}
